const path = require('path');

module.exports = {
  mode: 'production',
  entry: './src/watermark.js',
  target: ['web', 'es5'],
  output: {

    path: path.resolve(__dirname, '../lib'),
    filename: 'watermark.js',
    library: {
      name: 'watermark',
      type: 'umd',
    },
    globalObject: 'this',
  },
};
